<?php


namespace app\home\model\page\shop;

use app\api\model\dao\FlashSale;
use app\library\Error;
use app\library\PageBase;

class GetFlashSalePage extends PageBase
{
    private $objFlashSaleModel;

    public function __construct()
    {
        parent::__construct();
        $this->objFlashSaleModel = new FlashSale();
    }

    public function excute($param)
    {
        $ret = $this->checkToken($param);
        if (false === $ret) {
            return $this->getRes(Error::ERR_NO_AUTH);
        }


        return $this->objFlashSaleModel->getFlashSalePage();
    }
}